package com.panshi.controller;


import com.panshi.entity.AppMatterCheckT;
import com.panshi.service.impl.AppMatterCheckTServiceImpl;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 问题审核表 前端控制器
 * </p>
 *
 * @author xhlMr
 * @since 2020-08-04
 */
@RestController
public class AppMatterCheckTController {

    @Autowired
    private AppMatterCheckTServiceImpl appMatterCheckTService;

    @ApiOperation("问答审核表添加")
    @PostMapping("/app-matter-check-t/getMatterCheckAdd")
    public Boolean setMatterCheckAdd(@RequestBody AppMatterCheckT appMatterCheckT){
        return appMatterCheckTService.save(appMatterCheckT);
    }

    @ApiOperation("问答审核表查询全部")
    @GetMapping("/app-matter-check-t/getMatterCheckList")
    public List<AppMatterCheckT> getMatterCheckList(){
        return appMatterCheckTService.list(null);
    }

    @ApiOperation("问答审核表 分页查询")
    @GetMapping("/app-matter-check-t/getMatterCheckPage")
    public List<AppMatterCheckT> getMatterCheckPage(){
        return appMatterCheckTService.list(null);
    }


}

